﻿<%@ Control Language="C#" %>
<script runat="server">
    private int Item_Lang = 1;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Cid == 0)
            Cid = Utils.GetQueryString("cid", 0);
        Item_Lang = Utils.GetQueryString("lang", 1);
        Videos video = new Videos();
        Repeater_List.DataSource = video.List(Cid,Top_Size,Item_Lang,"home");
        Repeater_List.DataBind();
    }
    private int Top_size = 0;
    public int Top_Size
    {
        get { return Top_size; }
        set { Top_size = value; }
    }
    private string S_mode = "_ss";
    public string S_Mode
    {
        get { return S_mode; }
        set { S_mode = value; }
    }
    private int cid = 0;
    public int Cid
    {
        get { return cid; }
        set { cid = value; }
    }
</script>
<asp:Repeater runat="server" ID="Repeater_List">
    <ItemTemplate>
        <a href="Play.aspx?id=<%#Eval("Item_Id") %>&lang=<%=Item_Lang %>">
            <img src="../DataFile/VideoLogo/<%#Eval("Create_Time", "{0:yyyyMM}")%>/<%#Eval("Create_Time", "{0:ddHHmmss}")%><%=S_Mode %>.jpg" />
            <span><%#Eval("Item_Title")%></span>
            <p><%#Eval("Item_Summary")%> </p>
            <code><b><%#Eval("Item_Time", "{0:yyyy}")%></b>/<%#Eval("Item_Time", "{0:MM}")%><i><%#Eval("Item_Time", "{0:dd}")%></i></code>
            <em><%=Lang.Show("Play")%></em>
        </a>
    </ItemTemplate>
</asp:Repeater>
